#!/bin/bash

echo "========================================"
echo "🔬 学术研究自动化系统"
echo "========================================"
echo

echo "🚀 正在启动系统..."

# 检查Python版本
if ! command -v python3 &> /dev/null; then
    echo "❌ 未找到Python3，请先安装Python 3.8+"
    exit 1
fi

# 启动系统
python3 run_system.py

if [ $? -ne 0 ]; then
    echo
    echo "❌ 启动失败，请检查Python环境"
    echo
    echo "💡 解决方案:"
    echo "1. 确保已安装Python 3.8+"
    echo "2. 运行: pip3 install -r requirements.txt"
    echo "3. 检查防火墙设置"
    echo
    read -p "按任意键继续..."
fi